package com.ai.aicontact.busi.entity;
 

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-22 13:43:08.661
 */
@Entity
@Table(name = "RED_BLACK_LIST")
public class RedBlackList implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "RED_BLACK_LIST";

    /**${param.comment} */
	public static final String ALIAS_ID = "ID";
    /**${param.comment} */
	public static final String ALIAS_BILL_ID = "BILL_ID";
    /**${param.comment} */
	public static final String ALIAS_TYPE = "TYPE";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_CREATE_DATE = "CREATE_DATE";
    /**${param.comment} */
	public static final String ALIAS_DONE_CODE = "DONE_CODE";
    /**${param.comment} */
	public static final String ALIAS_OP_ID = "OP_ID";
	
	

 	@Id 
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="RED_BLACK_LIST$SEQ")
	@SequenceGenerator(name="RED_BLACK_LIST$SEQ",sequenceName="RED_BLACK_LIST$SEQ",allocationSize=1)
	@Column(name = "ID", unique = true, nullable = false)
    public java.lang.Long id;
  
 	@Column(name = "BILL_ID")
    public java.lang.String billId;
  
 	@Column(name = "TYPE")
    public java.lang.Integer type;
  
 	@Column(name = "STATE")
    public java.lang.Integer state;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_DATE")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date createDate;
  
 	@Column(name = "DONE_CODE")
    public java.lang.Long doneCode;
  
 	@Column(name = "OP_ID")
    public java.lang.String opId;
  





	public java.lang.Long getId() {
		return this.id;
	}
	
	public void setId(java.lang.Long value) {
		this.id = value;
	}

	public java.lang.String getBillId() {
		return this.billId;
	}
	
	public void setBillId(java.lang.String value) {
		this.billId = value;
	}

	public java.lang.Integer getType() {
		return this.type;
	}
	
	public void setType(java.lang.Integer value) {
		this.type = value;
	}

	public java.lang.Integer getState() {
		return this.state;
	}
	
	public void setState(java.lang.Integer value) {
		this.state = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public java.lang.Long getDoneCode() {
		return this.doneCode;
	}
	
	public void setDoneCode(java.lang.Long value) {
		this.doneCode = value;
	}

	public java.lang.String getOpId() {
		return this.opId;
	}
	
	public void setOpId(java.lang.String value) {
		this.opId = value;
	}


	
	public RedBlackList() {
	}
	
	public RedBlackList(boolean qryflag) {
	    if(qryflag){
	    		this.id = null;
				this.billId = null;
				this.type = null;
				this.state = null;
				this.createDate = null;
				this.doneCode = null;
				this.opId = null;
			    }
	}


	public RedBlackList(
	    java.lang.Long inId,
	    java.lang.String inBillId,
	    java.lang.Integer inType,
	    java.lang.Integer inState,
	    java.util.Date inCreateDate,
	    java.lang.Long inDoneCode,
		java.lang.String inOpId
	 ) {
		super();
				this.id = inId;
				this.billId = inBillId;
				this.type = inType;
				this.state = inState;
				this.createDate = inCreateDate;
				this.doneCode = inDoneCode;
				this.opId = inOpId;
			}

 


}

